package com.example.rbac.mapper;

import com.example.rbac.entity.Page;
import com.example.rbac.entity.Table;
import com.example.rbac.entity.TableField;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TablesMapper extends CurdMapper<Table>{
    List<String> findTables(@Param("dataName") String dataName);

    List<TableField> showTable(@Param("tableName") String tableName)throws Exception;

    List<Table> getPager(@Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize, @Param("dataName") String dataName);

    Integer getCount(@Param("dataName") String dataName);
}
